<?php

namespace Database\Seeders;

use Illuminate\Database\Seeder;

class SysDepartmentsTableSeeder extends Seeder
{

    /**
     * Auto generated seed file
     *
     * @return void
     */
    public function run()
    {
        

        \DB::table('sys_departments')->delete();
        
        \DB::table('sys_departments')->insert(array (
            0 => 
            array (
                'id' => 1,
                'name' => '公司',
                'parent_id' => 0,
                'code' => 'COMPANY',
                'status' => 1,
                'sort' => 1,
                'create_time' => NULL,
                'update_time' => '2024-07-02 11:08:36',
                'deleted_at' => NULL,
            ),
            1 => 
            array (
                'id' => 2,
                'name' => '部门02',
                'parent_id' => 1,
                'code' => 'bu-02',
                'status' => 1,
                'sort' => 2,
                'create_time' => '2024-06-23 17:17:52',
                'update_time' => '2024-07-02 11:09:42',
                'deleted_at' => NULL,
            ),
            2 => 
            array (
                'id' => 3,
                'name' => '部门01',
                'parent_id' => 1,
                'code' => 'bu-01',
                'status' => 1,
                'sort' => 1,
                'create_time' => '2024-06-23 17:19:50',
                'update_time' => '2024-07-02 11:15:50',
                'deleted_at' => NULL,
            ),
            3 => 
            array (
                'id' => 4,
                'name' => '部门03',
                'parent_id' => 0,
                'code' => 'bu-01',
                'status' => 1,
                'sort' => 1,
                'create_time' => '2024-07-02 11:13:49',
                'update_time' => NULL,
                'deleted_at' => '2024-07-02 11:15:31',
            ),
        ));
        
        
    }
}